package com.ajmd.onlineexam.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * @author ajmd
 * @since 2023/3/7 22:22
 */
@TableName("u_student")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
//@Component
public class StudentPO implements Serializable {
    //唯一标识,账户名
    @TableId
    private String account;
    //密码
    private String password;
    //姓名
    private String name;
    //生日
    @JsonFormat(timezone = "GMT+8")
    private Date birthday;
    //性别
    private String sex;
    //学校id
    private String organizationId;
    //院系id
    private String departmentId;
    //专业id
    private String teamId;
    //班级
    private String schoolClass;
    //手机号
    private String mobileNum;
    //学分
    private String credit;
    //照片路径
    private String userImg;
    //头像路径
    private String avatar;
    //注册时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp registerTime;
}
